package com.yazi.mxz.server.response;

import mo.framework.smh.hibernate.PageInfo;

/**
 * 
 * @author mo_yq5
 * @date 2014-1-11
 */
public class ComResponse extends StatusResponse {

	/**
	 * 缓存时长(毫秒)
	 */
	private long cachePeriod = 0;

	/**
	 * 分页信息
	 */
	private PageInfo pageInfo;
	
	/**
	 * 获得结果集缓存目标时长(毫秒)
	 * 
	 * @return
	 */
	public long getCachePeriod() {
		return cachePeriod;
	}

	/**
	 * 指定结果集缓存目标时长(毫秒)
	 * 
	 * @param cachePeriod
	 */
	public void setCachePeriod(long cachePeriod) {
		this.cachePeriod = cachePeriod;
	}

	/**
	 * 获得分页信息
	 * 
	 * @return
	 */
	public PageInfo getPageInfo() {
		return pageInfo;
	}

	/**
	 * 指定分页信息
	 * 
	 * @param pageInfo
	 */
	public void setPageInfo(PageInfo pageInfo) {
		this.pageInfo = pageInfo;
	}

}
